#ifndef __SYSTEM_H__
#define __SYSTEM_H__
#include "main.h"

#define KEY_NUM     4
#define EEPROM_ADDR_BACKLIGHT_EN        0x00
#define EEPROM_ADDR_KEY1_UPLOAD_EN      0x01
#define EEPROM_ADDR_KEY2_UPLOAD_EN      0x02
#define EEPROM_ADDR_KEY3_UPLOAD_EN      0x04
#define EEPROM_ADDR_KEY4_UPLOAD_EN      0x05
#define EEPROM_ADDR_RELAY1              0x06
#define EEPROM_ADDR_RELAY2              0x07
#define EEPROM_ADDR_RELAY3              0x08
#define EEPROM_ADDR_RELAY4              0x09
#define EEPROM_ADDR_INITED              0X0A

#define DEBUG
#if defined (DEBUG)
#define debug(...)      printf(__VA_ARGS__);
#else
#define debug(...)
#endif

extern uint8_t backLightEn;
extern uint8_t keyxUpLoadEn[4];
extern uint8_t unRegisterHint;
void system_init(void);
void system_process(void);
void system_factory(void);

#endif /* __SYSTEM_H__ */
